﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Addprivilege.aspx.cs" Inherits="StoragePeriod.Web.SysManage.Addprivilege" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .layout{background:url(../images/images_59.jpg) no-repeat}
        .left-cloumn{display:none}
        .right-cloumn{width:944px}
        #sms_title_li_0{background:url(../images/images_55.jpg) no-repeat}
        .Left_Search{width:190px;padding-left:10px;height:30px;border-top:1px solid #ccc}
        
    </style>
    <script type="text/javascript">
    
        $(function () {
            $("#add-priv").click(function () {

                $("#dialog-form").dialog('open');
                return false;
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainLeft" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="sms_title">
        <ul>
            <li><a href="../SysManage/AddPrivliege.aspx" style="color: #f90;">添加权限码</a></li>
            <li><a href="../SysManage/AddRole.aspx">添加角色</a></li>
            <li><a href="../SysManage/SysRolePrivilegeManage.aspx">角色权限管理</a></li>
            <li><a href="../SysManage/PersonnelRoleManage.aspx">人员角色分配</a></li>
            <li><a href="../SysManage/RawTypeManage.aspx">原料分类指派</a></li>
            <li><a href="#">计算公式维护</a></li>
        </ul>
    </div>
    <div class="sms_main">
        <div class="ui-widget">
            <asp:GridView ID="gvprivilegeView" runat="server" CssClass="sp-common-table ui-widget ui-widget-content"
                OnPreRender="gvprivilegeView_PreRender" AllowPaging="True" 
                DataKeyNames="权限码" onrowcancelingedit="gvprivilegeView_RowCancelingEdit" 
                onrowdeleting="gvprivilegeView_RowDeleting" 
                onrowediting="gvprivilegeView_RowEditing" 
                onrowupdating="gvprivilegeView_RowUpdating"
                onpageindexchanging="gvRoleprivilegeView_PageIndexChanging">
                <Columns>
                    <asp:CommandField ShowEditButton="True" />
                    <asp:CommandField ShowDeleteButton="True" />
                </Columns>
                <HeaderStyle CssClass="ui-widget-header" />
            </asp:GridView>
        </div>
        <button class="ui-button" id="add-priv">添加新权限</button>
    </div>
    <div class="_die">
        <div class="sp-dialog-box" id="dialog-form" title="添加权限码">
            <p class="validateTips">
                添加权限码，用于设置页面控件权限</p>
            <table class="sp-input-table " border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        模块代码：
                    </td>
                    <td>
                        <asp:TextBox runat="server" class="text ui-widget-content ui-corner-all" ID="tbPrivCode" />
                    </td>
                </tr>
                <tr>
                    <td>
                        模块名称：
                    </td>
                    <td>
                        <asp:TextBox runat="server" class="text ui-widget-content ui-corner-all" ID="tbPrivName" />
                    </td>
                </tr>
                <tr>
                    <td>
                        模块描述：
                    </td>
                    <td>
                        <asp:TextBox runat="server" class="text ui-widget-content ui-corner-all" ID="tbPrivDesc" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button Text="提交" CssClass="die" runat="server" ID="btPost" OnClick="btPost_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="sms_foot">
        <img src="../images/images_58.jpg" width="944" height="8" class="float_left" />
    </div>
    
</asp:Content>
